<template>
    <el-select v-model="mqty" name="qty[]" class="filter-item" style="width: 60px;" size="mini" >
        <el-option v-for="(option, index) in quantOptions" :key="index" :label="option" :value="option" />
    </el-select>
</template>
<script>
export default {
    props: {
        qty: {
            type: Number,
            default: 1
        }
    },
    data () {
        return {
            quantOptions: [0, 1, 2, 3],
            mqty: this.qty
        }
    },
    created () {
        let num = []
       for (let i = 0; i < this.qty + 1; i++) {
           num.push(i)
       }
       this.quantOptions = num
    },
    methods: {
    }
}
</script>
